<!DOCTYPE html>
<html>
<head>
<base href="${basePath}">
<meta charset="UTF-8">
<title>修改场地</title>
$!{include("import_js_css.html")}
<link rel="stylesheet" type="text/css"
	href="/yueyoga_all2014/app/admin/resources/css/basic.css" />
</head>
<body>
	$!{include("header.html")}
	<div class="menu_all">
		<div class="div_search_result clear">
			<div class="panel-heading panel-result-title">
				<h3 class="panel-title">修改场地</h3>
			</div>
			<div class="panel-form-add">
				<form class="form-horizontal" action="yueyogaAdmin/editPlace.jhtml" method="POST">
				<!--#var(Place place)-->
					<input type="hidden" name="placeId" value="${place.id}">
					<div class="panel-form-layout">	
						<label for="inputName" class="col-sm-1 control-label">场地名称</label>
						<div class="col-sm-3">
							<input type="text" class="form-control" name="name" id="inputName" value="${place.name}" >
						</div>
						<label for="inputType" class="col-sm-1 control-label">场地类型</label>
						<div class="col-sm-3">
							<select class="selectpicker show-menu-arrow" data-width="100%" name="type" id="inputType">
							<!-- #if(place.type==0) -->
								<option selected="selected" value="0">室内</option>
							<!-- #else -->
								<option value="0">室内</option>
							<!-- #end -->
							<!-- #if(place.type==1) -->
								<option selected="selected" value="1">室外</option>
							<!-- #else -->
								<option value="1">室外</option>
							<!-- #end -->
							</select>
						</div>
						<br /> <br /> 
						<label for="inputType" class="col-sm-1 control-label">场地状态</label>
						<div class="col-sm-3">
							<select class="selectpicker show-menu-arrow" data-width="100%" name="status" id="inputStatus">
							<!-- #if(place.status) -->
								<option selected="selected" value="1">使用中</option>
							<!-- #else -->
								<option value="1">使用中</option>
							<!-- #end -->
							<!-- #if(!place.status) -->
								<option selected="selected" value="0">空闲中</option>
							<!-- #else -->
								<option value="0">空闲中</option>
							<!-- #end -->
							</select>
						</div>
						<br /> <br /> 
						<div class="panel-btn-search">
							<button type="submit" class="btn btn-default btn-ade-default panel-mr">保存</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</body>
</html>
<script type="text/javascript">
	$(function() {
		$("#selTaskType").change(function() {
			var taskType = $(this).val();
			if (taskType == 2) {
				$("#ta_mbr_div").hide();
				$("#ta_gps_div").show();
			} else {
				$("#ta_gps_div").hide();
				$("#ta_mbr_div").show();
			}
		});
		//--
		$(".form_datetime").datetimepicker({
			minView : "month",
			language : "zh-CN",
			format : "yyyy-mm-dd",
			showMeridian : true,
			autoclose : true,
			todayBtn : true,
			pickerPosition : "bottom-left"
		});
		var msg = '${msg}';
		if (msg) {
			alert(msg);
			return;
		}
	});
</script>